﻿<UserControl x:Class="Skynet.C2SModule.Views.CreatePublisher.CreatePublisherView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300"  Loaded="UserControl_Loaded"
              MinHeight="350" MinWidth="350">
    <Grid>
        <Grid.ColumnDefinitions>
            <ColumnDefinition></ColumnDefinition>
            <ColumnDefinition></ColumnDefinition>
        </Grid.ColumnDefinitions>
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
            <RowDefinition Height="*"></RowDefinition>
            <RowDefinition Height="Auto"></RowDefinition>
        </Grid.RowDefinitions>
        <TextBlock Grid.Column="0" Grid.Row="0" Text="Name" Style="{StaticResource TextBlockStyle}"></TextBlock>
        <TextBlock Grid.Column="0" Grid.Row="1" Text="Web Site" Style="{StaticResource TextBlockStyle}"></TextBlock>
        
        <TextBox Grid.Column="1" 
                 Text="{Binding WorkerPublisher.Name}" 
                 Height="20" Margin="5,1,0,0" VerticalAlignment="Top" ></TextBox>
        <TextBox Grid.Column="1"  Grid.Row="1"  Style="{StaticResource TextBoxStyle}" 
                  Text="{Binding WorkerPublisher.WebSite}">
            
        </TextBox>
        
        
        <Button Content="Save" Grid.Column="0" Grid.Row="3"  Style="{StaticResource ButtonStyle}" Name="btnSave" Click="btnSave_Click" />
        <Button Content="Close" Grid.Column="1" Grid.Row="3" Style="{StaticResource ButtonStyle}" Click="Close_Click"/>
    </Grid>
</UserControl>
